﻿using MicroMvvm;
using ModernUILogViewer.Business;
using ModernUILogViewer.Model;
using System;
using System.ComponentModel;
using System.Net;
using System.Reactive.Linq;
using System.Windows.Input;

namespace ModernUILogViewer.ViewModel
{
    public class FileWatcherOptionsViewModel : BaseViewModel, IDataErrorInfo
    {
        #region Constructor

        public FileWatcherOptionsViewModel()
        {
        }
        
        #endregion

        #region EventHandler


        #endregion

        #region Fields

        #endregion

        #region Properties

        private int initialLimit;

        public int InitialLimit
        {
            get { return initialLimit; }
            set
            {
                initialLimit = value;
                RaisePropertyChanged(() => InitialLimit);
            }
        }

        private bool enableProxy;

        public bool EnableProxy
        {
            get { return enableProxy; }
            set
            {
                enableProxy = value;
                RaisePropertyChanged(() => EnableProxy);
            }
        }

        private bool enableCredentials;

        public bool EnableCredentials
        {
            get { return enableCredentials; }
            set
            {
                enableCredentials = value;
                RaisePropertyChanged(() => EnableCredentials);
            }
        }

        private string host;

        public string Host
        {
            get { return host; }
            set
            {
                host = value;
                RaisePropertyChanged(() => EnableProxy);
            }
        }

        private int port;

        public int Port
        {
            get { return port; }
            set
            {
                port = value;
                RaisePropertyChanged(() => Port);
            }
        }

        private string user;

        public string User
        {
            get { return user; }
            set
            {
                user = value;
                RaisePropertyChanged(() => User);
            }
        }


        private string password;

        public string Password
        {
            get { return password; }
            set
            {
                password = value;
                RaisePropertyChanged(() => Password);
            }
        }

        private string domain;

        public string Domain
        {
            get { return domain; }
            set
            {
                domain = value;
                RaisePropertyChanged(() => Domain);
            }
        }

        #endregion

        #region Methods

        public string Error
        {
            get { return null; }
        }

        public string this[string columnName]
        {
            get
            {
                if (this.GetType().GetProperty(columnName).Name.Equals(columnName))
                {
                }

                return null;
            }
        }


        #endregion

        #region Commands

        #endregion
    }
}
